package com.yang.controller.wx;

import com.yang.bean.common.BaseRespVo;
import com.yang.bean.zdd.vo.IndexVo;
import com.yang.service.admin.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName WXHomeController
 * @Description TODO
 * @Author zhangdongdong
 * @Date 2022/9/9 14:50
 * @Version 1.0
 */
@RestController
@RequestMapping("wx/home")
public class WXHomeController {
    @Autowired
    HomeService homeService;

    @RequestMapping("index")
    public BaseRespVo index() {
        IndexVo data = homeService.index();

        return BaseRespVo.ok(data);
    }
}
